package com.hy.demo.learn.spring.model;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * <p>
 *
 * </p>
 *
 * @author cjl
 * @version 1.0
 * @since 2020-07-28 13:52
 */
@Data
@Component
public class Person {

    @Value("1")
    private Long id;

    @Value("Jack")
    private String name;

    @Autowired
    private Pet pet;
}
